home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
minix
/
update~4.z
/
update~4
/
lib_stdio_test_tfwrite.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-09-06
|
367 b
|
28 lines
#include <stdio.h>
main()
{
#ifdef __STDC__
void *malloc(unsigned int);
void exit(int);
#else
void *malloc();
void exit();
#endif
char *b;
int i;
if ((b = malloc(48*1024)) == 0) {
fputs("No memory for buffer\n", stderr);
exit(1);
}
for (i = 0; i < 100; i++)
fwrite(b, 1023, 1, stdout);
fwrite(b, 1023, 48, stdout);
return 0;
}